home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 787 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  4.2 KB

  1. Path: gate.net!not-for-mail
  2. From: feathers@gate.net (Michael Feathers)
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  6. Date: 6 Jan 1996 22:17:34 -0500
  7. Organization: CyberGate, Inc.
  8. Message-ID: <4cne0e$1020@seminole.gate.net>
  9. References: <30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@barnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd
  10. NNTP-Posting-Host: seminole.gate.net
  11. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  12.  
  13. Alan Brain (aebrain@dynamite.com.au) wrote:
  14. : The argument about HN is resolvable to differing views on abstraction:
  15. : HN proponents argue that sometimes knowing the exact representation of a 
  16. : thing is crucual to successfully manipulating it: Knowing that f_p is a 
  17. : float is a lot more important than knowing the p stands for 
  18. : Plasmotic_Heat_Coefficient.
  19. : If the language they're working in is assembler, or C, then they have a 
  20. : point: they are willing to lay delayed-action bombs in the code (when the 
  21. : type changes) just in order to complete the program to a reasonable level 
  22. : of functionality in a reasonable time.
  23. : But in any high-level language - Ada, Modular-2, etc often you don't give 
  24. : a monkey's about the representation - whether it's a 64-bit float, a 
  25. : 32-bit IEEE float, or whatever. You're much more interested in what the 
  26. : thing means. If you got caught up in the intricacies of what goes on in 
  27. : the machine, you're making something non-portable, non-maintainable, and 
  28. : non-understandable.
  29.  
  30. Subject: Re: Hungarian notation
  31. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  32. Followup-To: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,co<30C40F77.53B5@swsbbs.com> <marnoldDJEvtJ.1Lx@netcom.com> <4aleun$jlk@ns.RezoNet.NET> <marnoldDJMDBG.CFz@netcom.com> <4asnkr$7b0@solutions.solon.com> <4ath75$e7i@ba
  33.  
  34. rnacle.iol.ie> <4b4kij$svt@news.microsoft.com> <dewar.819489496@schonberg> <4bd
  35.  
  36. 3ga$80a@beatty.slip.netcom.com> <30DC677A.5116@zeta.org.au> <4bhf24$adq@beatty.slip.netcom.com> <30E0E51A.5A4F@zeta.org.au> <4ckvpd$sap@fred.netinfo.com.au>
  37. Distribution: 
  38.  
  39. Alan Brain (aebrain@dynamite.com.au) wrote:
  40. : The argument about HN is resolvable to differing views on abstraction:
  41. : HN proponents argue that sometimes knowing the exact representation of a 
  42. : thing is crucual to successfully manipulating it: Knowing that f_p is a 
  43. : float is a lot more important than knowing the p stands for 
  44. : Plasmotic_Heat_Coefficient.
  45. : If the language they're working in is assembler, or C, then they have a 
  46. : point: they are willing to lay delayed-action bombs in the code (when the 
  47. : type changes) just in order to complete the program to a reasonable level 
  48. : of functionality in a reasonable time.
  49. : But in any high-level language - Ada, Modular-2, etc often you don't give 
  50. : a monkey's about the representation - whether it's a 64-bit float, a 
  51. : 32-bit IEEE float, or whatever. You're much more interested in what the 
  52. : thing means. If you got caught up in the intricacies of what goes on in 
  53. : the machine, you're making something non-portable, non-maintainable, and 
  54. : non-understandable.
  55.  
  56. Funny thing..  you seem to equate the type of a variable with its 
  57. representation.  I think that the type of a variable is very important
  58. semantic information which ought to be immediately visible when code is
  59. being modified or reviewed.  This issue of programmers accidently using
  60. the wrong HN prefix in a declaration is surely possible, but easily 
  61. checked for in a review.  In a strongly typed language like C++ or
  62. Ada, it is detectable in compilation.
  63.  
  64. If anyone does not think that type is important information that ought
  65. to kept in mind for semantic purposes, just consider this: someone
  66. anonymously offers you sex.  The type of person offering it should
  67. be important to you, unless you are bisexual, and even then you
  68. might like to know as some casting may be required.  :-)
  69.  
  70.  
  71. -Mike (master of silly analogies)
  72.